package org.blankhole.util.db;

import javax.sql.DataSource;
import java.util.Properties;

/**
 * IDataSourceFactory: DataSource 工程接口
 * 
 * @author Wenlong Meng(wenlong.meng@gmail.com)
 * @version 1.0 at 2012/08/15
 * @since 1.0
 */
public interface IDataSourceFactory {

	/**
	 * set property for dataSource
	 * 
	 * @param props
	 */
	void setProperties(Properties props);

	/**
	 * get dataSource
	 * 
	 * @param dataSource
	 * @return
	 */
	DataSource getDataSource(String dataSource);

}
